/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package org.beiyou;

import java.util.Calendar;

/**
 * <p>Project: javase202202 - Ex4
 * <p>Powered by Lisi On 2022-05-31 10:31:31
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class Ex4 {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        c.set(2022, 5 - 1, 1);
        //int year = c.get(Calendar.YEAR);
        int year = c.get(3);
        System.out.println(year);

    }
}
